﻿<?php
include("common.inc.php");
$xxyy=$_GET['xxyy'];
list($xx,$yy,$zz)=explode(',',$xxyy);
$xx=GetNum($xx);
$yy=GetNum($yy);
$zz=GetNum($zz);

if(!$xx||!$yy||!$zz)exit("暂无商家标注信息!");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>地图</title>

<script src="http://maps.google.com/maps?file=api&v=2&oe=gb2312&key=ABQIAAAA7UIEqGTA2P2R08jKPB_qCxTn32je4EbY-4b3gPMKz4vMQccG_hQG2Z6HcgXqUrng4dKK0315qETYHA" type="text/javascript"></script>
</head>
<body>
<div id="mapsDiv" style="width:290px; min-height:200px; _height:200px;">
</div>
<script type="text/javascript">
var myMap;
var myMarker;
window.onload = function() {
if (GBrowserIsCompatible()) {
	myMap = new GMap2(document.getElementById("mapsDiv"));
	//myMap.addControl(new GLargeMapControl());
	//myMap.addControl(new GScaleControl());
	//myMap.enableScrollWheelZoom();
	
	var center = new GLatLng(<?php echo $xx;?>,<?php echo $yy;?>); 
	myMap.setCenter(center,16);
	myMarker = new GMarker(new GLatLng(<?php echo $xx;?>,<?php echo $yy;?>), {draggable: false});
	myMap.addOverlay(myMarker);
	//myMarker.openInfoWindowHtml("商家位置");
}
}
</script>
</body>
</html>
